/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2019-02-13 Time: 23:07
 */

import {Action} from "../../../configuration/ActionCreator"
import {requestRetrieveLinenAndBar,requestSave_linen,requestSave_bar} from "../../../request/HousekeeperRequest"


/**
 * 获取数据
 */
export const LinenAndBar = 'LinenAndBar';
export const retrieveLinenAndBar = () => {
    let action = Action(LinenAndBar);
    return dispatch => dispatch(requestRetrieveLinenAndBar(action))
}


/**
 * 布草保存
 */
export const Save_linen = 'Save_linen';
export const save_linen = (str) => {
    let action = Action(Save_linen);
    let str3 = {"whsk_Order_picture":[]};
    return dispatch => dispatch(requestSave_linen(action,str,str3))
}

/**
 * 酒水保存
 */
export const Save_bar = 'Save_bar';
export const save_bar = (str) => {
    let action = Action(Save_bar);
    return dispatch => dispatch(requestSave_bar(action,str))
}




